<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test.js"></script>
<script src="resources/common-setrangetext.js"></script>
</head>
<body>
<script>
// TODO(tkent): This should be merged to external/wpt/html/
// semantics/forms/textfieldselection/textfieldselection-setRangeText.html
description("Test setRangeText() method on common input types.");

runTestsShouldPass("input", { type: "password" });
runTestsShouldPass("input", { type: "tel" });
runTestsShouldPass("input", { type: "text" });
runTestsShouldPass("input", { type: "text", dir: "rtl" });
runTestsShouldPass("input", { type: "url" });

runTestsShouldFail("input", { type: "button" });
runTestsShouldFail("input", { type: "checkbox" });
runTestsShouldFail("input", { type: "email" });
runTestsShouldFail("input", { type: "radio" });
runTestsShouldFail("input", { type: "reset" });
runTestsShouldFail("input", { type: "submit" });

</script>
</body>
</html>
